//
//  IMTModel.m
//  LinePhoto
//
//  Created by Kyle on 14-4-13.
//  Copyright (c) 2014年 孙凯旋. All rights reserved.
//

#import "IMTModel.h"

@implementation IMTModel

//通过请求加载数据
- (void)loadDataFromResponseData:(id)responseData andRequestType:(RequestType)requestType {
    
}

- (NSString *)stringFromResponseData:(id)responseData {
    NSString *string = [NSString stringWithFormat:@"%@", responseData];
    if ([string isEqualToString:@"(null)"]) {
        return @"";
    } else {
        return string;
    }
}

+ (NSString *)stringFromResponseData:(id)responseData {
    NSString *string = [NSString stringWithFormat:@"%@", responseData];
    if ([string isEqualToString:@"(null)"]) {
        return @"";
    } else {
        return string;
    }
}

- (BOOL)boolFromResponseData:(id)responseData {
    NSString *string = [NSString stringWithFormat:@"%@", responseData];
    if ([string isEqualToString:@"1"]) {
        return YES;
    } else {
        return NO;
    }
}

+ (BOOL)boolFromResponseData:(id)responseData {
    NSString *string = [NSString stringWithFormat:@"%@", responseData];
    if ([string isEqualToString:@"1"]) {
        return YES;
    } else {
        return NO;
    }
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {

    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    
}

//加载本地数据
- (void)loadCache {
}

//保存数据到本地
- (void)saveCacheWithResponseData:(NSMutableDictionary *)responseData {

}

@end
